/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    /* 移除下划线 */
    text-decoration: none;
    /* 使用父元素的颜色 */
    color: inherit;
    /* 悬停鼠标手 */
    cursor: pointer;
}


/* 轮播图容器 */
.slider-container {
    max-width: 1425px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 轮播图主体 */
.slider {
    position: relative;
    height: 555px;
}

/* 单个幻灯片 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

/* 渐变遮罩 */
.slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 渐变效果 斜渐变 */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));
    /* 确保遮罩层在图片之上 */
    z-index: 1;
}

/* 激活时显示 */
.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 150px;
    /* 为焦点按钮留出空间 */
    left: 150px;
    color: white;
    padding: 10px 20px;
    max-width: 80%;
    z-index: 2;
}

.line {
    width: 60px;
    height: 10px;
    background-color: rgb(0, 87, 162);
    margin-bottom: 40px;
}

.info {
    margin-bottom: 40px;
}

.title {
    font-size: 25px;
    margin-bottom: 5px;
}

.details {
    font-size: 50px;
    font-weight: 700;
}

.button {
    border: 2px solid white;
    border-radius: 25px;
    font-size: 20px;
    padding: 10px;
}

/* 悬停变色 */
.button:hover {
    background: white;
    color: #aaa;
}

/* 导航控制 - 修改为在图片内部 */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    /* 移除背景色 */
    background-color: transparent;
}

.slider-prev,
.slider-next {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 3px 6px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    z-index: 11;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 焦点按钮样式调整 */
.slider-dots {
    display: flex;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    /* 激活放大1.2 */
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.info a:hover{
    color: #fff;
}

.info a:visited{
    color: #fff;
}

.slide-content a:visited{
	color:#fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slider-container {
        max-width: 100%;
    }

    .slider {
        height: 300px;
    }



    .slider-prev,
    .slider-next {
        padding: 5px 8px;
        font-size: 12px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .slide-content {
        top: 20px;
        /* 为焦点按钮留出空间 */
        left: 20px;
    }

    .line {
        width: 40px;
        height: 7px;
        background-color: rgb(0, 87, 162);
        margin-bottom: 20px;
    }

    .info {
        margin-bottom: 20px;
    }

    .title {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .details {
        font-size: 30px;
        font-weight: 700;
    }

    .button {
        border: 1px solid white;
        border-radius: 12px;
        font-size: 5px;
        padding: 5px;

    }
}